﻿@model List<LTSMZ.life.Model.OrdersComment>

@{
    ViewBag.Title = "ShowOrders";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<table style="font-size:x-large;font-family:宋体" border="1">
    <tr>
        <td>订单编号</td>
        <td>商品名称</td>
        <td>商品数量</td>
        <td>下单时间</td>
        <td>订单状态</td>
        <td>购买人</td>
        <td>操作</td>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.OrderID</td>
            <td>@item.Pname</td>
            <td>@item.Num</td>
            <td>@item.OrderTime</td>
            <td><span id="span1">@if (Convert.ToInt32(@item.State) == 1)
            {
                <span>正品</span>
            }
            else
            {
                <span>
                    不
                </span>
            }</span>
                
            </td>
            <td>@item.Mname</td>
            <td><a href="/Home/GetOrderId/@item.OrderID" style="text-decoration:none">删除</a></td>
        </tr>
    }
</table>
